package com.zhiqianbao.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.zhiqianbao.R;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;

/**
 * Created by liang on 2015/12/28.
 */
public class BigPicDialogActivity extends BaseActivity {

    ImageView imageViewBigPic;

    ImageLoader imageLoader = ImageLoader.getInstance();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_big__pic_dialog);
        imageViewBigPic=(ImageView)findViewById(R.id.imageView_bigPic);
        imageLoader.init(ImageLoaderConfiguration.createDefault(this));
        Intent intent = getIntent();
        imageLoader.displayImage("file://" + (String) intent.getExtras().get("bitmap"), imageViewBigPic);

        imageViewBigPic.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                BigPicDialogActivity.this.finish();
            }
        });
    }
}
